<table border="1" cellpadding="3" cellspacing="0" bordercolor="#000000" style="border-collapse: collapse; table-layout:fixed;word-wrap:break-word;" width="100%" class="table_common">
    <tr>
        <th rowspan="3">区域</th>
        <th rowspan="3">大区</th>
        <th rowspan="3">小区</th>
        <th rowspan="3">省份</th>
        <th rowspan="3">城市</th>
        <th rowspan="3">专营店</th>
        <th rowspan="3">专营店编码</th>
        <th rowspan="3">所属双月</th>
        <th rowspan="3">双月额度</th>
        <th colspan="17">项目活动</th>
    </tr>
    <tr>
        <th rowspan="2">项目编号</th>
        <th rowspan="2">项目名称</th>
        <th rowspan="2">标准动作</th>
        <th rowspan="2">活动类型</th>
        <th rowspan="2">线下活动流水号</th>
        <th rowspan="2">活动地址</th>
        <th rowspan="2">发布时间段</th>
        <th colspan="3">预算费用</th>
        <th colspan="4">预算审核费用</th>
        <th colspan="1">实际费用</th>
        <th colspan="2">结算审核费用</th>
    </tr>
    <tr>
        <th>场馆配套预算费用</th>
        <th>活动组织预算费用</th>
        <th>预算总费用</th>
        <th>场馆配套预算审核费用</th>
        <th>活动组织预算审核费用</th>
        <th>预算审核结果</th>
        <th>预算审核总费用</th>
        <th>实际总费用</th>
        <th>结算审核结果</th>
        <th>结算审核总费用</th>
    </tr>
    <?php
    foreach($procIds as $procId){
        $procData = isset($procList[$procId]) ? $procList[$procId] : array();
        $storeData = isset($allStoreList[$procData['storeId']]) ? $allStoreList[$procData['storeId']] : array();
    ?>
    <?php
    if(isset($pOfflineGroupList[$procId])){
        foreach($pOfflineGroupList[$procId] as $v){
            $projectData = isset($projectList[$v['projectId']]) ? $projectList[$v['projectId']] : array();
            $detailMoney = isset($pMoneyDetailList[$v['id']]) ? $pMoneyDetailList[$v['id']] : array();
    ?>
    <tr>
        <td><?=$storeData['area'];?></td>
        <td><?=$storeData['region'];?></td>
        <td><?=$storeData['spsarea'];?></td>
        <td><?=$storeData['province'];?></td>
        <td><?=$storeData['city'];?></td>
        <td><?=$storeData['storeName'];?></td>
        <td><?=$storeData['coding'];?></td>
        <td><?=$procData['timeUnitStr'];?></td>
        <td><?=$procData['fixedMoney'];?></td>
        <td><?=$projectData['id']?></td>
        <td><?=$projectData['projectName']?></td>
        <td><?=$projectData['actionTypeStr']?></td>
        <td><?=$projectData['eventTypeStr'].'-'.$projectData['eventClassStr']?></td>
        <td><?=$v['id'];?></td>
        <td><?=$v['address'];?></td>
        <td><?=$v['startTime'];?>到<?=$v['endTime'];?></td>
        <td><?=$detailMoney['budgetApply']['venue'];?></td>
        <td><?=$detailMoney['budgetApply']['activity'];?></td>
        <td><?=$detailMoney['budgetApply']['total'];?></td>
        <td><?=$detailMoney['budgetAudit']['venue'];?></td>
        <td><?=$detailMoney['budgetAudit']['activity'];?></td>
        <td><?=$v['budgetAuditStr'];?></td>
        <td><?=$detailMoney['budgetAudit']['total'];?></td>
        <td><?=$v['settleApply'];?></td>
        <td><?=$v['settleAuditStr'];?></td>
        <td><?=$v['settleAudit'];?></td>
    </tr>
    <?php }}?>
    <?php }?>
</table>